<?xml version="1.0"?>
<component name="org.nuxeo.theme.nuxeo.default.override">

  <require>org.nuxeo.theme.nuxeo.default</require>

  <extension point="applications" target="org.nuxeo.theme.services.ThemeService">

    <application root="/nuxeo" template-engine="jsf-facelets">

      <negotiation>
        <strategy>nuxeo5</strategy>
        <default-engine>default</default-engine>
        <default-theme>galaxy/default</default-theme>
        <default-perspective>default</default-perspective>
        <!-- TODO default collection/flavor... -->
      </negotiation>

      <!-- Cache control for theme resources (/nxthemes-lib/) -->
      <resource-caching>
        <lifetime>36000</lifetime>
      </resource-caching>

      <!-- Cache control for theme styles (/nxthemes-css/) -->
      <style-caching>
        <lifetime>900</lifetime>
      </style-caching>

      <view id="/create_relation_search_document_popup.xhtml">
        <theme>galaxy/popup</theme>
      </view>
      <view id="/dndFormCollector.xhtml">
        <theme>galaxy/popup</theme>
      </view>
      <view id="/editor_link_search_document.xhtml">
        <theme>galaxy/popup</theme>
      </view>
      <view id="/editor_image_upload.xhtml">
        <theme>galaxy/popup</theme>
      </view>

      <view id="/info_view.xhtml">
        <theme>galaxy/popup</theme>
      </view>

    </application>
  </extension>

</component>
